package com.zzh.phone.scale.basicfeatures;

import android.os.Bundle;

import com.zzh.lib.views.image.ImageSource;
import com.zzh.lib.views.image.SubsamplingScaleImageView;
import com.zzh.phone.hviews.R.id;
import com.zzh.phone.hviews.R.layout;
import com.zzh.phone.hviews.R.string;
import com.zzh.phone.scale.AbstractPagesActivity;
import com.zzh.phone.scale.Page;

import java.util.Arrays;

import androidx.annotation.Nullable;


public class BasicFeaturesActivity extends AbstractPagesActivity {

    public BasicFeaturesActivity() {
        super(string.basic_title, layout.pages_activity, Arrays.asList(
                new Page(string.basic_p1_subtitle, string.basic_p1_text),
                new Page(string.basic_p2_subtitle, string.basic_p2_text),
                new Page(string.basic_p3_subtitle, string.basic_p3_text),
                new Page(string.basic_p4_subtitle, string.basic_p4_text),
                new Page(string.basic_p5_subtitle, string.basic_p5_text)
        ));
    }

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        SubsamplingScaleImageView view = findViewById(id.imageView);
        view.setImage(ImageSource.asset("sanmartino.jpg"));
    }

}
